<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>111</title>
    <script src="./node_modules/react/umd/react.development.js"></script>
    <script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
    <div id="root"></div>
    <div id="text"></div>
    <script>
         console.log('React', React, ReactDOM)
        let title = React.createElement('h1',null,"你好")

        let item = React.createElement('div',{className:'item',title:"列表"},
           React.createElement('h2', {className:'tile'},'中奖列表',
           React.createElement('ul',{className:'list'},
            React.createElement("li",null,'1.张三'),
            React.createElement("li",{ onClick: function() {alert("11")} },'1.张三'),
            React.createElement("li",null,'1.张三'),
           ))
        )

       
        let root = ReactDOM.createRoot(document.getElementById('root'))
        let text = ReactDOM.createRoot(document.getElementById('text'))
        root.render(title)
        text.render(item)

        console.log('aaa',title)
        console.log('bbb', document.getElementById('root'))
    </script>
</head>

<body>

</body>

</html>